package com.study.designPattern.observer.example;

/**
 * 创建人： HBZ，时间： 2017/8/22 13:02.
 * 说明：
 */
public class Test {
    public static void main(String []args){
        Customer subject = new Customer();

        subject.Attach(new Accountant());
        subject.Attach(new Cashier());
        subject.Attach(new Dilliveryman());

        subject.setCustomerState("已付款");
        subject.Notify();
    }
}
